import { ScrollView, View, Text, Image } from '@tarojs/components';
import React, { Component } from 'react';
import Taro, { getCurrentInstance } from '@tarojs/taro';
import { connect } from 'react-redux';
import './index.less';
import Blank from '@/pages/common/blank';
import WMLoading from '@/pages/common/loading';
import { WMkit } from 'wmkit';
import successImg from '@/assets/image/my/mq_success.png'
import btnImg from '@/assets/image/my/btn.png'

export default class Index extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  componentDidMount() { }

  componentDidShow() { }

  componentWillUnmount() { }

  render() {
    return (
      <View className='packageAQSsuccess'>
        <Image className='successImg' mode="widthFix" src={successImg} />
        <View className='succ'>
          <Text className='succText'>问卷提交成功</Text>
        </View>
        <View className='succ'>
          <Text className='textText'>感谢您对我们的支持与信任，谢谢！</Text>
        </View>
        <View
          onClick={async () => {
            await Taro.switchTab({ url: '/pages/index/index' });
          }}
        >
          <Image className='btnImg' mode="widthFix" src={btnImg} />
        </View>
      </View>
    );
  }
}
